<?php
/***/
namespace app\Http\Middleware;

use Request;
use Closure;
use App\Http\Controllers\MsgFilterController;

class MessageFilter
{
    /**
     * Handle an incoming request.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \Closure  $next
     * @param  string|null  $guard
     * @return mixed
     */
    public function handle($request, Closure $next)
    {
        return $next($request);
    }
    
    
    public function terminate($request, $response)
    {
        $msgObj=new MsgFilterController();
        //这里是响应后调用的方法
    }
    
}

?>